<!DOCTYPE html>


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>SmartcardFilesystem Module &mdash; vsmartcard 2017-01-16 documentation</title>
    
    <link rel="stylesheet" href="../../_static/basic.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/bootswatch-3.3.4/flatly/bootstrap.min.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/bootstrap-sphinx.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../',
        VERSION:     '2017-01-16',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <script type="text/javascript" src="../../_static/js/jquery-1.11.0.min.js"></script>
    <script type="text/javascript" src="../../_static/js/jquery-fix.js"></script>
    <script type="text/javascript" src="../../_static/bootstrap-3.3.4/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../../_static/bootstrap-sphinx.js"></script>
    <link rel="shortcut icon" href="../../_static/chip.ico"/>
    <link rel="top" title="vsmartcard 2017-01-16 documentation" href="../../index.html" />
    <link rel="up" title="virtualsmartcard Package" href="virtualsmartcard.html" />
    <link rel="next" title="SmartcardSAM Module" href="virtualsmartcard.SmartcardSAM.html" />
    <link rel="prev" title="SWutils Module" href="virtualsmartcard.SWutils.html" />
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
<meta name="apple-mobile-web-app-capable" content="yes">

  </head>
  <body>
  
  <a href="https://github.com/frankmorgner/vsmartcard"
     class="visible-desktop hidden-xs"><img
    id="gh-banner"
    style="position: absolute; top: 50px; right: 0; border: 0;"
    src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png"
    alt="Fork me on GitHub"></a>
  <script>
    // Adjust banner height.
    $(function () {
      var navHeight = $(".navbar .container").css("height");
      $("#gh-banner").css("top", navHeight);
    });
  </script>


  <div id="navbar" class="navbar navbar-default ">
    <div class="container">
      <div class="navbar-header">
        <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="../../index.html">
          vsmartcard</a>
        <span class="navbar-text navbar-version pull-left"><b></b></span>
      </div>

        <div class="collapse navbar-collapse nav-collapse">
          <ul class="nav navbar-nav">
            
            
              <li class="dropdown globaltoc-container">
  <a role="button"
     id="dLabelGlobalToc"
     data-toggle="dropdown"
     data-target="#"
     href="../../index.html">Site <b class="caret"></b></a>
  <ul class="dropdown-menu globaltoc"
      role="menu"
      aria-labelledby="dLabelGlobalToc"><ul>
<li class="toctree-l1"><a class="reference internal" href="../README.html">Virtual Smart Card</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../remote-reader/README.html">Remote Smart Card Reader</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../ACardEmulator/README.html">Android Smart Card Emulator</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../TCardEmulator/README.html">Tizen Smart Card Emulator</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../pcsc-relay/README.html">PC/SC Relay</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../ccid/README.html">USB CCID Emulator</a></li>
</ul>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="../api.html">Creating a Virtual Smart Card</a></li>
</ul>
</ul>
</li>
              
                <li class="dropdown">
  <a role="button"
     id="dLabelLocalToc"
     data-toggle="dropdown"
     data-target="#"
     href="#">Page <b class="caret"></b></a>
  <ul class="dropdown-menu localtoc"
      role="menu"
      aria-labelledby="dLabelLocalToc"><ul>
<li><a class="reference internal" href="#">SmartcardFilesystem Module</a></li>
</ul>
</ul>
</li>
              
            
            
              
                
  <li>
    <a href="virtualsmartcard.SWutils.html" title="Previous Chapter: SWutils Module"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm hidden-tablet">&laquo; SWutils Module</span>
    </a>
  </li>
  <li>
    <a href="virtualsmartcard.SmartcardSAM.html" title="Next Chapter: SmartcardSAM Module"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm hidden-tablet">SmartcardSAM Mod... &raquo;</span>
    </a>
  </li>
              
            
            
            
            
              <li class="hidden-sm"></li>
            
          </ul>

          
            
<form class="navbar-form navbar-right" action="../../search.html" method="get">
 <div class="form-group">
  <input type="text" name="q" class="form-control" placeholder="Search" />
 </div>
  <input type="hidden" name="check_keywords" value="yes" />
  <input type="hidden" name="area" value="default" />
</form>
          
        </div>
    </div>
  </div>

<div class="container">
  <div class="row">
    <div class="col-md-12 content">
      
  <div class="section" id="smartcardfilesystem-module">
<h1>SmartcardFilesystem Module<a class="headerlink" href="#smartcardfilesystem-module" title="Permalink to this headline">¶</a></h1>
<p class="graphviz">
<img src="../../_images/inheritance-6200e2d9c7f43138ee8cae247df739aec4d9e742.png" alt="Inheritance diagram of virtualsmartcard.SmartcardFilesystem" usemap="#inheritance498eda02c2" class="inheritance"/>
<map id="inheritance498eda02c2" name="inheritance498eda02c2">
<area shape="rect" id="node1" href="#virtualsmartcard.SmartcardFilesystem.DF" title="Class for a dedicated file" alt="" coords="250,20,446,37"/>
<area shape="rect" id="node4" href="#virtualsmartcard.SmartcardFilesystem.MF" title="Class for a master file" alt="" coords="523,20,719,37"/>
<area shape="rect" id="node2" href="#virtualsmartcard.SmartcardFilesystem.File" title="Template class for a smartcard file." alt="" coords="12,37,209,54"/>
<area shape="rect" id="node3" href="#virtualsmartcard.SmartcardFilesystem.EF" title="Template class for an elementary file." alt="" coords="250,53,445,71"/>
<area shape="rect" id="node6" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF" title="Class for an elementary file with record structure." alt="" coords="489,53,754,71"/>
<area shape="rect" id="node7" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF" title="Class for an elementary file with transparent structure." alt="" coords="478,87,764,104"/>
<area shape="rect" id="node5" href="#virtualsmartcard.SmartcardFilesystem.Record" title="virtualsmartcard.SmartcardFilesystem.Record" alt="" coords="4,4,217,21"/>
</map>
</p>
<span class="target" id="module-virtualsmartcard.SmartcardFilesystem"></span><dl class="class">
<dt id="virtualsmartcard.SmartcardFilesystem.DF">
<em class="property">class </em><tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">DF</tt><big>(</big><em>parent</em>, <em>fid</em>, <em>filedescriptor=56</em>, <em>lifecycle=5</em>, <em>simpletlv_data=None</em>, <em>bertlv_data=None</em>, <em>dfname=None</em>, <em>data=''</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#virtualsmartcard.SmartcardFilesystem.File" title="virtualsmartcard.SmartcardFilesystem.File"><tt class="xref py py-class docutils literal"><span class="pre">virtualsmartcard.SmartcardFilesystem.File</span></tt></a></p>
<p>Class for a dedicated file</p>
<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.append">
<tt class="descname">append</tt><big>(</big><em>file</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.append" title="Permalink to this definition">¶</a></dt>
<dd><p>Appends &#8216;file&#8217; to the content of the DF.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.appendrecord">
<tt class="descname">appendrecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.appendrecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.bertlv_data">
<tt class="descname">bertlv_data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.bertlv_data" title="Permalink to this definition">¶</a></dt>
<dd><p>list of (tag, length, value)-tuples of BER-TLV coded data objects (encrypted)</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.content">
<tt class="descname">content</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.content" title="Permalink to this definition">¶</a></dt>
<dd><p>list of files of the DF</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.data">
<tt class="descname">data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.data" title="Permalink to this definition">¶</a></dt>
<dd><p>unknown</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.decrypt">
<tt class="descname">decrypt</tt><big>(</big><em>path</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.decrypt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.dfname">
<tt class="descname">dfname</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.dfname" title="Permalink to this definition">¶</a></dt>
<dd><p>string with up to 16 bytes. DF name,which can also be used as applicationidentifier.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.encrypt">
<tt class="descname">encrypt</tt><big>(</big><em>path</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.encrypt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.erasebinary">
<tt class="descname">erasebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.erasebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.fid">
<tt class="descname">fid</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.fid" title="Permalink to this definition">¶</a></dt>
<dd><p>file identifier</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.filedescriptor">
<tt class="descname">filedescriptor</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.filedescriptor" title="Permalink to this definition">¶</a></dt>
<dd><p>file descriptor byte</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.getdata">
<tt class="descname">getdata</tt><big>(</big><em>isSimpleTlv</em>, <em>requestedTL</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.getdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a string of either the file&#8217;s BER-TLV or the file&#8217;s SIMPLE-TLV
coded data objects depending on the bool &#8216;isSimpleTlv&#8217;. &#8216;requestedTL&#8217;
is a list of (tag, length)-tuples that specify which tags should be
returned in what size.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.getpath">
<tt class="descname">getpath</tt><big>(</big><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.getpath" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the path to this file beginning with the MF&#8217;s fid.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.lifecycle">
<tt class="descname">lifecycle</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.lifecycle" title="Permalink to this definition">¶</a></dt>
<dd><p>life cycle byte</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.parent">
<tt class="descname">parent</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.parent" title="Permalink to this definition">¶</a></dt>
<dd><p>parent DF</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.putdata">
<tt class="descname">putdata</tt><big>(</big><em>isSimpleTlv</em>, <em>newtlvlist</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.putdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets either the file&#8217;s BER-TLV or the file&#8217;s SIMPLE-TLV coded data
objects depending on the bool &#8216;isSimpleTlv&#8217;. &#8216;newtlvlist&#8217; is a list of
(tag, length, value)-tuples of new data.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.readbinary">
<tt class="descname">readbinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.readbinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.readrecord">
<tt class="descname">readrecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.readrecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.remove">
<tt class="descname">remove</tt><big>(</big><em>file</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.remove" title="Permalink to this definition">¶</a></dt>
<dd><p>Removes &#8216;file&#8217; from the content of the DF</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.select">
<tt class="descname">select</tt><big>(</big><em>attribute</em>, <em>value</em>, <em>reference=0</em>, <em>index_current=0</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.select" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the first file of the DF, that has the &#8216;attribute&#8217; with the
specified &#8216;value&#8217;. For partial DF name selection you must specify the
first/last/next or previous occurence with &#8216;reference&#8217; and the index of
the current file &#8216;index_current&#8217; (-1 for None).</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.simpletlv_data">
<tt class="descname">simpletlv_data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.simpletlv_data" title="Permalink to this definition">¶</a></dt>
<dd><p>list of (tag, length, value)-tuples of SIMPLE-TLV coded data objects (encrypted)</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.updatebinary">
<tt class="descname">updatebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.updatebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.updaterecord">
<tt class="descname">updaterecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.updaterecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.writebinary">
<tt class="descname">writebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.writebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.DF.writerecord">
<tt class="descname">writerecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.DF.writerecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="virtualsmartcard.SmartcardFilesystem.EF">
<em class="property">class </em><tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">EF</tt><big>(</big><em>parent</em>, <em>fid</em>, <em>filedescriptor</em>, <em>lifecycle=5</em>, <em>simpletlv_data=None</em>, <em>bertlv_data=None</em>, <em>datacoding=0</em>, <em>shortfid=0</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#virtualsmartcard.SmartcardFilesystem.File" title="virtualsmartcard.SmartcardFilesystem.File"><tt class="xref py py-class docutils literal"><span class="pre">virtualsmartcard.SmartcardFilesystem.File</span></tt></a></p>
<p>Template class for an elementary file.</p>
<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.appendrecord">
<tt class="descname">appendrecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.appendrecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.bertlv_data">
<tt class="descname">bertlv_data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.bertlv_data" title="Permalink to this definition">¶</a></dt>
<dd><p>list of (tag, length, value)-tuples of BER-TLV coded data objects (encrypted)</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.datacoding">
<tt class="descname">datacoding</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.datacoding" title="Permalink to this definition">¶</a></dt>
<dd><p>integer. Data coding byte.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.decrypt">
<tt class="descname">decrypt</tt><big>(</big><em>path</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.decrypt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.encrypt">
<tt class="descname">encrypt</tt><big>(</big><em>path</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.encrypt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.erasebinary">
<tt class="descname">erasebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.erasebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.fid">
<tt class="descname">fid</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.fid" title="Permalink to this definition">¶</a></dt>
<dd><p>file identifier</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.filedescriptor">
<tt class="descname">filedescriptor</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.filedescriptor" title="Permalink to this definition">¶</a></dt>
<dd><p>file descriptor byte</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.getdata">
<tt class="descname">getdata</tt><big>(</big><em>isSimpleTlv</em>, <em>requestedTL</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.getdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a string of either the file&#8217;s BER-TLV or the file&#8217;s SIMPLE-TLV
coded data objects depending on the bool &#8216;isSimpleTlv&#8217;. &#8216;requestedTL&#8217;
is a list of (tag, length)-tuples that specify which tags should be
returned in what size.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.getpath">
<tt class="descname">getpath</tt><big>(</big><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.getpath" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the path to this file beginning with the MF&#8217;s fid.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.lifecycle">
<tt class="descname">lifecycle</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.lifecycle" title="Permalink to this definition">¶</a></dt>
<dd><p>life cycle byte</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.parent">
<tt class="descname">parent</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.parent" title="Permalink to this definition">¶</a></dt>
<dd><p>parent DF</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.putdata">
<tt class="descname">putdata</tt><big>(</big><em>isSimpleTlv</em>, <em>newtlvlist</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.putdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets either the file&#8217;s BER-TLV or the file&#8217;s SIMPLE-TLV coded data
objects depending on the bool &#8216;isSimpleTlv&#8217;. &#8216;newtlvlist&#8217; is a list of
(tag, length, value)-tuples of new data.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.readbinary">
<tt class="descname">readbinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.readbinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.readrecord">
<tt class="descname">readrecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.readrecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.select">
<tt class="descname">select</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.select" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.shortfid">
<tt class="descname">shortfid</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.shortfid" title="Permalink to this definition">¶</a></dt>
<dd><p>integer with 1&lt;=shortfid&lt;=30.Short EF identifier.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.simpletlv_data">
<tt class="descname">simpletlv_data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.simpletlv_data" title="Permalink to this definition">¶</a></dt>
<dd><p>list of (tag, length, value)-tuples of SIMPLE-TLV coded data objects (encrypted)</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.updatebinary">
<tt class="descname">updatebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.updatebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.updaterecord">
<tt class="descname">updaterecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.updaterecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.writebinary">
<tt class="descname">writebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.writebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.EF.writerecord">
<tt class="descname">writerecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.EF.writerecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="virtualsmartcard.SmartcardFilesystem.File">
<em class="property">class </em><tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">File</tt><big>(</big><em>parent</em>, <em>fid</em>, <em>filedescriptor</em>, <em>lifecycle=5</em>, <em>simpletlv_data=None</em>, <em>bertlv_data=None</em>, <em>SAM=None</em>, <em>extra_fci_data=''</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
<p>Template class for a smartcard file.</p>
<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.appendrecord">
<tt class="descname">appendrecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.appendrecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.File.bertlv_data">
<tt class="descname">bertlv_data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.bertlv_data" title="Permalink to this definition">¶</a></dt>
<dd><p>list of (tag, length, value)-tuples of BER-TLV coded data objects (encrypted)</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.decrypt">
<tt class="descname">decrypt</tt><big>(</big><em>path</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.decrypt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.encrypt">
<tt class="descname">encrypt</tt><big>(</big><em>path</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.encrypt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.erasebinary">
<tt class="descname">erasebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.erasebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.File.fid">
<tt class="descname">fid</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.fid" title="Permalink to this definition">¶</a></dt>
<dd><p>file identifier</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.File.filedescriptor">
<tt class="descname">filedescriptor</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.filedescriptor" title="Permalink to this definition">¶</a></dt>
<dd><p>file descriptor byte</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.getdata">
<tt class="descname">getdata</tt><big>(</big><em>isSimpleTlv</em>, <em>requestedTL</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.getdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a string of either the file&#8217;s BER-TLV or the file&#8217;s SIMPLE-TLV
coded data objects depending on the bool &#8216;isSimpleTlv&#8217;. &#8216;requestedTL&#8217;
is a list of (tag, length)-tuples that specify which tags should be
returned in what size.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.getpath">
<tt class="descname">getpath</tt><big>(</big><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.getpath" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the path to this file beginning with the MF&#8217;s fid.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.File.lifecycle">
<tt class="descname">lifecycle</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.lifecycle" title="Permalink to this definition">¶</a></dt>
<dd><p>life cycle byte</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.File.parent">
<tt class="descname">parent</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.parent" title="Permalink to this definition">¶</a></dt>
<dd><p>parent DF</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.putdata">
<tt class="descname">putdata</tt><big>(</big><em>isSimpleTlv</em>, <em>newtlvlist</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.putdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets either the file&#8217;s BER-TLV or the file&#8217;s SIMPLE-TLV coded data
objects depending on the bool &#8216;isSimpleTlv&#8217;. &#8216;newtlvlist&#8217; is a list of
(tag, length, value)-tuples of new data.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.readbinary">
<tt class="descname">readbinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.readbinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.readrecord">
<tt class="descname">readrecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.readrecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.select">
<tt class="descname">select</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.select" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.File.simpletlv_data">
<tt class="descname">simpletlv_data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.simpletlv_data" title="Permalink to this definition">¶</a></dt>
<dd><p>list of (tag, length, value)-tuples of SIMPLE-TLV coded data objects (encrypted)</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.updatebinary">
<tt class="descname">updatebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.updatebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.updaterecord">
<tt class="descname">updaterecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.updaterecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.writebinary">
<tt class="descname">writebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.writebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.File.writerecord">
<tt class="descname">writerecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.File.writerecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="virtualsmartcard.SmartcardFilesystem.MF">
<em class="property">class </em><tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">MF</tt><big>(</big><em>filedescriptor=56</em>, <em>lifecycle=5</em>, <em>simpletlv_data=None</em>, <em>bertlv_data=None</em>, <em>dfname=None</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#virtualsmartcard.SmartcardFilesystem.DF" title="virtualsmartcard.SmartcardFilesystem.DF"><tt class="xref py py-class docutils literal"><span class="pre">virtualsmartcard.SmartcardFilesystem.DF</span></tt></a></p>
<p>Class for a master file</p>
<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF._selectFile">
<tt class="descname">_selectFile</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF._selectFile" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the file specified by &#8216;p1&#8217; and &#8216;data&#8217; from the select
file command APDU.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.append">
<tt class="descname">append</tt><big>(</big><em>file</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.append" title="Permalink to this definition">¶</a></dt>
<dd><p>Appends &#8216;file&#8217; to the content of the DF.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.appendRecord">
<tt class="descname">appendRecord</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.appendRecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xe2. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.appendrecord">
<tt class="descname">appendrecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.appendrecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.bertlv_data">
<tt class="descname">bertlv_data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.bertlv_data" title="Permalink to this definition">¶</a></dt>
<dd><p>list of (tag, length, value)-tuples of BER-TLV coded data objects (encrypted)</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.content">
<tt class="descname">content</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.content" title="Permalink to this definition">¶</a></dt>
<dd><p>list of files of the DF</p>
</dd></dl>

<dl class="staticmethod">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.create">
<em class="property">static </em><tt class="descname">create</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.create" title="Permalink to this definition">¶</a></dt>
<dd><p>Creates and returns a list of files according to the parameters of a
create file command.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.createFile">
<tt class="descname">createFile</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.createFile" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xe0. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.current">
<tt class="descname">current</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.current" title="Permalink to this definition">¶</a></dt>
<dd><p>the currently selected file</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.currentDF">
<tt class="descname">currentDF</tt><big>(</big><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.currentDF" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the current DF.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.currentEF">
<tt class="descname">currentEF</tt><big>(</big><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.currentEF" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the current EF or None if not available.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.data">
<tt class="descname">data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.data" title="Permalink to this definition">¶</a></dt>
<dd><p>unknown</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.dataObjectHandlingDecodeEncapsulated">
<tt class="descname">dataObjectHandlingDecodeEncapsulated</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.dataObjectHandlingDecodeEncapsulated" title="Permalink to this definition">¶</a></dt>
<dd><p>Decodes &#8216;p1&#8217;, &#8216;p2&#8217; and &#8216;data&#8217; from a data object handling command (i.
e. get/put data) with <em>odd</em> instruction code.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the specified file, True if the following list regards
SIMPLE-TLV data objects False otherwise and a list of
(tag, length, value)-tuples.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.dataObjectHandlingDecodePlain">
<tt class="descname">dataObjectHandlingDecodePlain</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.dataObjectHandlingDecodePlain" title="Permalink to this definition">¶</a></dt>
<dd><p>Decodes &#8216;p1&#8217;, &#8216;p2&#8217; and &#8216;data&#8217; from a data object handling command (i.
e. get/put data) with <em>even</em> instruction code.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the specified file, True if the following list regards
SIMPLE-TLV data objects False otherwise and a list of
(tag, length, value)-tuples.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.dataUnitsDecodeEncapsulated">
<tt class="descname">dataUnitsDecodeEncapsulated</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.dataUnitsDecodeEncapsulated" title="Permalink to this definition">¶</a></dt>
<dd><p>Decodes &#8216;p1&#8217;, &#8216;p2&#8217; and &#8216;data&#8217; from a data unit command (i. e.
read/write/update/search/erase binary) with <em>odd</em> instruction code.</p>
<dl class="docutils">
<dt>:returns the specified TransparentStructureEF, a list of offsets and a</dt>
<dd>list of data strings.</dd>
</dl>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.dataUnitsDecodePlain">
<tt class="descname">dataUnitsDecodePlain</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.dataUnitsDecodePlain" title="Permalink to this definition">¶</a></dt>
<dd><p>Decodes &#8216;p1&#8217;, &#8216;p2&#8217; and &#8216;data&#8217; from a data unit command (i. e.
read/write/update/search/erase binary) with <em>even</em> instruction code.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the specified TransparentStructureEF, a list of offsets and a
list of data strings.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.decrypt">
<tt class="descname">decrypt</tt><big>(</big><em>path</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.decrypt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.deleteFile">
<tt class="descname">deleteFile</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.deleteFile" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xe4. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.dfname">
<tt class="descname">dfname</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.dfname" title="Permalink to this definition">¶</a></dt>
<dd><p>string with up to 16 bytes. DF name,which can also be used as applicationidentifier.</p>
</dd></dl>

<dl class="staticmethod">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.encodeFileControlParameter">
<em class="property">static </em><tt class="descname">encodeFileControlParameter</tt><big>(</big><em>file</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.encodeFileControlParameter" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a string of TLV-coded file control information of &#8216;file&#8217;. Note:
The result is not prepended with tag and length for neither TCP, FMD
nor FCI template.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.encrypt">
<tt class="descname">encrypt</tt><big>(</big><em>path</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.encrypt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.eraseBinaryEncapsulated">
<tt class="descname">eraseBinaryEncapsulated</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.eraseBinaryEncapsulated" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0x0f. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.eraseBinaryPlain">
<tt class="descname">eraseBinaryPlain</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.eraseBinaryPlain" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0x0e. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.eraseRecord">
<tt class="descname">eraseRecord</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.eraseRecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0x0c. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.erasebinary">
<tt class="descname">erasebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.erasebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.fid">
<tt class="descname">fid</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.fid" title="Permalink to this definition">¶</a></dt>
<dd><p>file identifier</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.filedescriptor">
<tt class="descname">filedescriptor</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.filedescriptor" title="Permalink to this definition">¶</a></dt>
<dd><p>file descriptor byte</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.firstSFT">
<tt class="descname">firstSFT</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.firstSFT" title="Permalink to this definition">¶</a></dt>
<dd><p>string of length 1. The firstsoftware function table from thehistorical bytes.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.getDataEncapsulated">
<tt class="descname">getDataEncapsulated</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.getDataEncapsulated" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xcb. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.getDataPlain">
<tt class="descname">getDataPlain</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.getDataPlain" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xca. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.getdata">
<tt class="descname">getdata</tt><big>(</big><em>isSimpleTlv</em>, <em>requestedTL</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.getdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a string of either the file&#8217;s BER-TLV or the file&#8217;s SIMPLE-TLV
coded data objects depending on the bool &#8216;isSimpleTlv&#8217;. &#8216;requestedTL&#8217;
is a list of (tag, length)-tuples that specify which tags should be
returned in what size.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.getpath">
<tt class="descname">getpath</tt><big>(</big><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.getpath" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the path to this file beginning with the MF&#8217;s fid.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.lifecycle">
<tt class="descname">lifecycle</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.lifecycle" title="Permalink to this definition">¶</a></dt>
<dd><p>life cycle byte</p>
</dd></dl>

<dl class="staticmethod">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.makeFirstSoftwareFunctionTable">
<em class="property">static </em><tt class="descname">makeFirstSoftwareFunctionTable</tt><big>(</big><em>DFSelectionByFullDFName=True</em>, <em>DFSelectionByPartialDFName=True</em>, <em>DFSelectionByPath=True</em>, <em>DFSelectionByFID=True</em>, <em>DFSelectionByApplication_implicite=True</em>, <em>ShortFIDSupported=True</em>, <em>RecordNumberSupported=True</em>, <em>RecordIdentifierSupported=True</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.makeFirstSoftwareFunctionTable" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a byte according to the first software function table from the
historical bytes of the card capabilities.</p>
</dd></dl>

<dl class="staticmethod">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.makeSecondSoftwareFunctionTable">
<em class="property">static </em><tt class="descname">makeSecondSoftwareFunctionTable</tt><big>(</big><em>DCB=1</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.makeSecondSoftwareFunctionTable" title="Permalink to this definition">¶</a></dt>
<dd><p>The second software function table from the historical bytes contains
the data coding byte.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.parent">
<tt class="descname">parent</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.parent" title="Permalink to this definition">¶</a></dt>
<dd><p>parent DF</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.putDataEncapsulated">
<tt class="descname">putDataEncapsulated</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.putDataEncapsulated" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xdb. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.putDataPlain">
<tt class="descname">putDataPlain</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.putDataPlain" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xda. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.putdata">
<tt class="descname">putdata</tt><big>(</big><em>isSimpleTlv</em>, <em>newtlvlist</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.putdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets either the file&#8217;s BER-TLV or the file&#8217;s SIMPLE-TLV coded data
objects depending on the bool &#8216;isSimpleTlv&#8217;. &#8216;newtlvlist&#8217; is a list of
(tag, length, value)-tuples of new data.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.readBinaryEncapsulated">
<tt class="descname">readBinaryEncapsulated</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.readBinaryEncapsulated" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xb1. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.readBinaryPlain">
<tt class="descname">readBinaryPlain</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.readBinaryPlain" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xb0. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.readRecordEncapsulated">
<tt class="descname">readRecordEncapsulated</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.readRecordEncapsulated" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xb3. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.readRecordPlain">
<tt class="descname">readRecordPlain</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.readRecordPlain" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xb2. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.readbinary">
<tt class="descname">readbinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.readbinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.readrecord">
<tt class="descname">readrecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.readrecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.recordHandlingDecode">
<tt class="descname">recordHandlingDecode</tt><big>(</big><em>p1</em>, <em>p2</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.recordHandlingDecode" title="Permalink to this definition">¶</a></dt>
<dd><p>Decodes &#8216;p1&#8217; and &#8216;p2&#8217; from a record handling command (i. e.
read/write/update/append/search/erase record).</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the specified RecordStructureEF, the number or identifier of
the record and a reference, that specifies which record to select
(i. e. the last 3 bits of &#8216;p1&#8217;).</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.remove">
<tt class="descname">remove</tt><big>(</big><em>file</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.remove" title="Permalink to this definition">¶</a></dt>
<dd><p>Removes &#8216;file&#8217; from the content of the DF</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.searchBinaryEncapsulated">
<tt class="descname">searchBinaryEncapsulated</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.searchBinaryEncapsulated" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.searchBinaryPlain">
<tt class="descname">searchBinaryPlain</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.searchBinaryPlain" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.secondSFT">
<tt class="descname">secondSFT</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.secondSFT" title="Permalink to this definition">¶</a></dt>
<dd><p>string of length 1. The secondsoftware function table from thehistorical bytes.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.select">
<tt class="descname">select</tt><big>(</big><em>attribute</em>, <em>value</em>, <em>reference=0</em>, <em>index_current=0</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.select" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the first file of the DF, that has the &#8216;attribute&#8217; with the
specified &#8216;value&#8217;. For partial DF name selection you must specify the
first/last/next or previous occurence with &#8216;reference&#8217; and the index of
the current file &#8216;index_current&#8217; (-1 for None).</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.selectFile">
<tt class="descname">selectFile</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.selectFile" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xa4. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.simpletlv_data">
<tt class="descname">simpletlv_data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.simpletlv_data" title="Permalink to this definition">¶</a></dt>
<dd><p>list of (tag, length, value)-tuples of SIMPLE-TLV coded data objects (encrypted)</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.updateBinaryEncapsulated">
<tt class="descname">updateBinaryEncapsulated</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.updateBinaryEncapsulated" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xd7. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.updateBinaryPlain">
<tt class="descname">updateBinaryPlain</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.updateBinaryPlain" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xd6. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.updateRecordEncapsulated">
<tt class="descname">updateRecordEncapsulated</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.updateRecordEncapsulated" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xdd. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.updateRecordPlain">
<tt class="descname">updateRecordPlain</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.updateRecordPlain" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xdc. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.updatebinary">
<tt class="descname">updatebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.updatebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.updaterecord">
<tt class="descname">updaterecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.updaterecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.writeBinaryEncapsulated">
<tt class="descname">writeBinaryEncapsulated</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.writeBinaryEncapsulated" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xd1. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string. Returns the status bytes as two
byte long integer and the response data as binary string.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.writeBinaryPlain">
<tt class="descname">writeBinaryPlain</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.writeBinaryPlain" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xd0. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.writeRecord">
<tt class="descname">writeRecord</tt><big>(</big><em>p1</em>, <em>p2</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.writeRecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Function for instruction 0xd2. Takes the parameter bytes &#8216;p1&#8217;, &#8216;p2&#8217; as
integers and &#8216;data&#8217; as binary string.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the status bytes as two byte long integer and the response
data as binary string.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.writebinary">
<tt class="descname">writebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.writebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.MF.writerecord">
<tt class="descname">writerecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.MF.writerecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="virtualsmartcard.SmartcardFilesystem.Record">
<em class="property">class </em><tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">Record</tt><big>(</big><em>identifier=None</em>, <em>data=''</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.Record" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.Record.data">
<tt class="descname">data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.Record.data" title="Permalink to this definition">¶</a></dt>
<dd><p>string. The record&#8217;s data.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.Record.identifier">
<tt class="descname">identifier</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.Record.identifier" title="Permalink to this definition">¶</a></dt>
<dd><p>Class for a Record of an elementary of record structure</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF">
<em class="property">class </em><tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">RecordStructureEF</tt><big>(</big><em>parent</em>, <em>fid</em>, <em>filedescriptor</em>, <em>lifecycle=5</em>, <em>simpletlv_data=None</em>, <em>bertlv_data=None</em>, <em>datacoding=0</em>, <em>shortfid=0</em>, <em>maxrecordsize=65535</em>, <em>records=[]</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#virtualsmartcard.SmartcardFilesystem.EF" title="virtualsmartcard.SmartcardFilesystem.EF"><tt class="xref py py-class docutils literal"><span class="pre">virtualsmartcard.SmartcardFilesystem.EF</span></tt></a></p>
<p>Class for an elementary file with record structure.</p>
<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF._RecordStructureEF__getRecords">
<tt class="descname">_RecordStructureEF__getRecords</tt><big>(</big><em>num_id</em>, <em>reference</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF._RecordStructureEF__getRecords" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a list of records.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>num_id</strong> &#8211; The requested record&#8217;s number or identifier</li>
<li><strong>reference</strong> &#8211; Specifies which record to select (usually the last 3
bits of &#8216;p1&#8217; of a record handling command)</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF._RecordStructureEF__getRecordsByIdentifier">
<tt class="descname">_RecordStructureEF__getRecordsByIdentifier</tt><big>(</big><em>id</em>, <em>reference</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF._RecordStructureEF__getRecordsByIdentifier" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a list of records and sets the recordpointer to the first
record, that matched. Is to be involved by __getRecords.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>id</strong> &#8211; The requested record&#8217;s identifier</li>
<li><strong>reference</strong> &#8211; Specifies which record to select (usually the last 3
bits of &#8216;p1&#8217; of a record handling command)</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF._RecordStructureEF__getRecordsByNumber">
<tt class="descname">_RecordStructureEF__getRecordsByNumber</tt><big>(</big><em>number</em>, <em>reference</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF._RecordStructureEF__getRecordsByNumber" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a list of records. Is to be involved by __getRecords.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>number</strong> &#8211; The requested record&#8217;s number</li>
<li><strong>reference</strong> &#8211; Specifies which record to select (usually the last 3
bits of &#8216;p1&#8217; of a record handling command)</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.appendrecord">
<tt class="descname">appendrecord</tt><big>(</big><em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.appendrecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Appends a new record to the file, initializing it with the given data
string. Sets the recordpointer to the newly created record.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.bertlv_data">
<tt class="descname">bertlv_data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.bertlv_data" title="Permalink to this definition">¶</a></dt>
<dd><p>list of (tag, length, value)-tuples of BER-TLV coded data objects (encrypted)</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.datacoding">
<tt class="descname">datacoding</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.datacoding" title="Permalink to this definition">¶</a></dt>
<dd><p>integer. Data coding byte.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.decrypt">
<tt class="descname">decrypt</tt><big>(</big><em>path</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.decrypt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.encrypt">
<tt class="descname">encrypt</tt><big>(</big><em>path</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.encrypt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.erasebinary">
<tt class="descname">erasebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.erasebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.eraserecord">
<tt class="descname">eraserecord</tt><big>(</big><em>num_id</em>, <em>reference</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.eraserecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Removes a record from the file. &#8216;num_id&#8217; and &#8216;reference&#8217; specify the
record (see __getRecords).</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.fid">
<tt class="descname">fid</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.fid" title="Permalink to this definition">¶</a></dt>
<dd><p>file identifier</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.filedescriptor">
<tt class="descname">filedescriptor</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.filedescriptor" title="Permalink to this definition">¶</a></dt>
<dd><p>file descriptor byte</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.getdata">
<tt class="descname">getdata</tt><big>(</big><em>isSimpleTlv</em>, <em>requestedTL</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.getdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a string of either the file&#8217;s BER-TLV or the file&#8217;s SIMPLE-TLV
coded data objects depending on the bool &#8216;isSimpleTlv&#8217;. &#8216;requestedTL&#8217;
is a list of (tag, length)-tuples that specify which tags should be
returned in what size.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.getpath">
<tt class="descname">getpath</tt><big>(</big><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.getpath" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the path to this file beginning with the MF&#8217;s fid.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.hasFixedRecordSize">
<tt class="descname">hasFixedRecordSize</tt><big>(</big><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.hasFixedRecordSize" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns True if the records are of fixed size, False otherwise.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.hasSimpleTlv">
<tt class="descname">hasSimpleTlv</tt><big>(</big><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.hasSimpleTlv" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns True if the EF is of TLV structure, False otherwise.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.isCyclic">
<tt class="descname">isCyclic</tt><big>(</big><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.isCyclic" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns True if the EF is of cyclic structure, False otherwise.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.lifecycle">
<tt class="descname">lifecycle</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.lifecycle" title="Permalink to this definition">¶</a></dt>
<dd><p>life cycle byte</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.maxrecordsize">
<tt class="descname">maxrecordsize</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.maxrecordsize" title="Permalink to this definition">¶</a></dt>
<dd><p>integer. maximum length of a record&#8217;s data.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.parent">
<tt class="descname">parent</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.parent" title="Permalink to this definition">¶</a></dt>
<dd><p>parent DF</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.putdata">
<tt class="descname">putdata</tt><big>(</big><em>isSimpleTlv</em>, <em>newtlvlist</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.putdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets either the file&#8217;s BER-TLV or the file&#8217;s SIMPLE-TLV coded data
objects depending on the bool &#8216;isSimpleTlv&#8217;. &#8216;newtlvlist&#8217; is a list of
(tag, length, value)-tuples of new data.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.readbinary">
<tt class="descname">readbinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.readbinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.readrecord">
<tt class="descname">readrecord</tt><big>(</big><em>offset</em>, <em>num_id</em>, <em>reference</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.readrecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a data string from the given &#8216;offset&#8217;. &#8216;num_id&#8217; and &#8216;reference&#8217;
specify the record (see __getRecords).</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.recordpointer">
<tt class="descname">recordpointer</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.recordpointer" title="Permalink to this definition">¶</a></dt>
<dd><p>integer. Points to the current record (i. e. index of records).</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.records">
<tt class="descname">records</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.records" title="Permalink to this definition">¶</a></dt>
<dd><p>list of records (encrypted)</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.resetRecordPointer">
<tt class="descname">resetRecordPointer</tt><big>(</big><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.resetRecordPointer" title="Permalink to this definition">¶</a></dt>
<dd><p>Resets the record pointer.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.select">
<tt class="descname">select</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.select" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.shortfid">
<tt class="descname">shortfid</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.shortfid" title="Permalink to this definition">¶</a></dt>
<dd><p>integer with 1&lt;=shortfid&lt;=30.Short EF identifier.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.simpletlv_data">
<tt class="descname">simpletlv_data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.simpletlv_data" title="Permalink to this definition">¶</a></dt>
<dd><p>list of (tag, length, value)-tuples of SIMPLE-TLV coded data objects (encrypted)</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.updatebinary">
<tt class="descname">updatebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.updatebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.updaterecord">
<tt class="descname">updaterecord</tt><big>(</big><em>num_id</em>, <em>reference</em>, <em>offset</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.updaterecord" title="Permalink to this definition">¶</a></dt>
<dd><p>x.updaterecord(num_id, reference, offset, data) &lt;==&gt;
x.writerecord(num_id, reference, offset, data, DCB[&#8220;ONETIMEWRITE&#8221;])</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.writebinary">
<tt class="descname">writebinary</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.writebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.RecordStructureEF.writerecord">
<tt class="descname">writerecord</tt><big>(</big><em>num_id</em>, <em>reference</em>, <em>offset</em>, <em>data</em>, <em>datacoding=None</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.RecordStructureEF.writerecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Writes a data string to the &#8216;offset&#8217; of a record using the given data
coding byte.  &#8216;num_id&#8217; and &#8216;reference&#8217; specify the record (see
__getRecords).</p>
</dd></dl>

</dd></dl>

<dl class="class">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF">
<em class="property">class </em><tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">TransparentStructureEF</tt><big>(</big><em>parent</em>, <em>fid</em>, <em>filedescriptor=1</em>, <em>lifecycle=5</em>, <em>simpletlv_data=None</em>, <em>bertlv_data=None</em>, <em>datacoding=0</em>, <em>shortfid=0</em>, <em>data=''</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <a class="reference internal" href="#virtualsmartcard.SmartcardFilesystem.EF" title="virtualsmartcard.SmartcardFilesystem.EF"><tt class="xref py py-class docutils literal"><span class="pre">virtualsmartcard.SmartcardFilesystem.EF</span></tt></a></p>
<p>Class for an elementary file with transparent structure.</p>
<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.appendrecord">
<tt class="descname">appendrecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.appendrecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.bertlv_data">
<tt class="descname">bertlv_data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.bertlv_data" title="Permalink to this definition">¶</a></dt>
<dd><p>list of (tag, length, value)-tuples of BER-TLV coded data objects (encrypted)</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.data">
<tt class="descname">data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.data" title="Permalink to this definition">¶</a></dt>
<dd><p>string (encrypted). The file&#8217;s data.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.datacoding">
<tt class="descname">datacoding</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.datacoding" title="Permalink to this definition">¶</a></dt>
<dd><p>integer. Data coding byte.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.decrypt">
<tt class="descname">decrypt</tt><big>(</big><em>path</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.decrypt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.encrypt">
<tt class="descname">encrypt</tt><big>(</big><em>path</em>, <em>data</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.encrypt" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.erasebinary">
<tt class="descname">erasebinary</tt><big>(</big><em>erasefrom</em>, <em>eraseto</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.erasebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets (part of) the content of an EF to its logical erased state,
sequentially starting from &#8216;erasefrom&#8217; ending at &#8216;eraseto&#8217;.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.fid">
<tt class="descname">fid</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.fid" title="Permalink to this definition">¶</a></dt>
<dd><p>file identifier</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.filedescriptor">
<tt class="descname">filedescriptor</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.filedescriptor" title="Permalink to this definition">¶</a></dt>
<dd><p>file descriptor byte</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.getdata">
<tt class="descname">getdata</tt><big>(</big><em>isSimpleTlv</em>, <em>requestedTL</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.getdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a string of either the file&#8217;s BER-TLV or the file&#8217;s SIMPLE-TLV
coded data objects depending on the bool &#8216;isSimpleTlv&#8217;. &#8216;requestedTL&#8217;
is a list of (tag, length)-tuples that specify which tags should be
returned in what size.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.getpath">
<tt class="descname">getpath</tt><big>(</big><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.getpath" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the path to this file beginning with the MF&#8217;s fid.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.lifecycle">
<tt class="descname">lifecycle</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.lifecycle" title="Permalink to this definition">¶</a></dt>
<dd><p>life cycle byte</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.parent">
<tt class="descname">parent</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.parent" title="Permalink to this definition">¶</a></dt>
<dd><p>parent DF</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.putdata">
<tt class="descname">putdata</tt><big>(</big><em>isSimpleTlv</em>, <em>newtlvlist</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.putdata" title="Permalink to this definition">¶</a></dt>
<dd><p>Sets either the file&#8217;s BER-TLV or the file&#8217;s SIMPLE-TLV coded data
objects depending on the bool &#8216;isSimpleTlv&#8217;. &#8216;newtlvlist&#8217; is a list of
(tag, length, value)-tuples of new data.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.readbinary">
<tt class="descname">readbinary</tt><big>(</big><em>offset</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.readbinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the string of decrypted data beginning at &#8216;offset&#8217;.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.readrecord">
<tt class="descname">readrecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.readrecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.select">
<tt class="descname">select</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.select" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.shortfid">
<tt class="descname">shortfid</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.shortfid" title="Permalink to this definition">¶</a></dt>
<dd><p>integer with 1&lt;=shortfid&lt;=30.Short EF identifier.</p>
</dd></dl>

<dl class="attribute">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.simpletlv_data">
<tt class="descname">simpletlv_data</tt><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.simpletlv_data" title="Permalink to this definition">¶</a></dt>
<dd><p>list of (tag, length, value)-tuples of SIMPLE-TLV coded data objects (encrypted)</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.updatebinary">
<tt class="descname">updatebinary</tt><big>(</big><em>offsets</em>, <em>datalist</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.updatebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>x.updatebinary(offsets, datalist) &lt;==&gt;
x.writebinary(offsets, datalist, DCB[&#8220;ONETIMEWRITE&#8221;])</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.updaterecord">
<tt class="descname">updaterecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.updaterecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.writebinary">
<tt class="descname">writebinary</tt><big>(</big><em>offsets</em>, <em>datalist</em>, <em>datacoding=None</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.writebinary" title="Permalink to this definition">¶</a></dt>
<dd><p>Writes pieces of data to the specified offsets honoring the given
coding byte.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>offsets</strong> &#8211; list of integers. Offsets.</li>
<li><strong>datalist</strong> &#8211; list of strings. Data pieces.</li>
<li><strong>datacoding</strong> &#8211; the data coding byte to use for writing</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="method">
<dt id="virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.writerecord">
<tt class="descname">writerecord</tt><big>(</big><em>*argz</em>, <em>**args</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.TransparentStructureEF.writerecord" title="Permalink to this definition">¶</a></dt>
<dd><p>Only a template, will raise an error.</p>
</dd></dl>

</dd></dl>

<dl class="function">
<dt id="virtualsmartcard.SmartcardFilesystem.get_indexes">
<tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">get_indexes</tt><big>(</big><em>items</em>, <em>reference=0</em>, <em>index_current=0</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.get_indexes" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns all indexes of the list, which are specified by &#8216;reference&#8217; and by
the current index &#8216;index_current&#8217; (-1 for no current item) in the correct
order. I. e.:</p>
<p>REF[&#8220;IDENTIFIER_FIRST&#8221;]: all indexes from first to the last item
REF[&#8220;IDENTIFIER_LAST&#8221;]: all indexes from the last to first item
REF[&#8220;IDENTIFIER_NEXT&#8221;]: all indexes from the next to the last item
REF[&#8220;IDENTIFIER_PREVIOUS&#8221;]: all indexes from the previous to the first item</p>
</dd></dl>

<dl class="function">
<dt id="virtualsmartcard.SmartcardFilesystem.getfile_byrefdataobj">
<tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">getfile_byrefdataobj</tt><big>(</big><em>mf</em>, <em>refdataobjs</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.getfile_byrefdataobj" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a list of files according to the given list of reference data
objects.</p>
<p>param mf:          the MF
param refdataobjs: a list of 3-tuples (tag, length, newvalue)</p>
</dd></dl>

<dl class="function">
<dt id="virtualsmartcard.SmartcardFilesystem.isEqual">
<tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">isEqual</tt><big>(</big><em>list</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.isEqual" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns True, if all items are equal, otherwise False</p>
</dd></dl>

<dl class="function">
<dt id="virtualsmartcard.SmartcardFilesystem.make_property">
<tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">make_property</tt><big>(</big><em>prop</em>, <em>doc</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.make_property" title="Permalink to this definition">¶</a></dt>
<dd><p>Assigns a property to the calling object. This is used to decorate instance
variables with docstrings.</p>
</dd></dl>

<dl class="function">
<dt id="virtualsmartcard.SmartcardFilesystem.prettyprint_anything">
<tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">prettyprint_anything</tt><big>(</big><em>indent</em>, <em>thing</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.prettyprint_anything" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a recursively generated string representation of an object and its
attributes.</p>
</dd></dl>

<dl class="function">
<dt id="virtualsmartcard.SmartcardFilesystem.walk">
<tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">walk</tt><big>(</big><em>start</em>, <em>path</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.walk" title="Permalink to this definition">¶</a></dt>
<dd><p>Walks a path of fids and returns the last file (EF or DF).</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>start</strong> &#8211; DF, where to look for the first fid</li>
<li><strong>path</strong> &#8211; a string of fids</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="virtualsmartcard.SmartcardFilesystem.write">
<tt class="descclassname">virtualsmartcard.SmartcardFilesystem.</tt><tt class="descname">write</tt><big>(</big><em>old</em>, <em>newlist</em>, <em>offsets</em>, <em>datacoding</em>, <em>maxsize=None</em><big>)</big><a class="headerlink" href="#virtualsmartcard.SmartcardFilesystem.write" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the status bytes and the result of a write operation according to
the given data coding.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>old</strong> &#8211; string of old data</li>
<li><strong>newlist</strong> &#8211; a list of new data string</li>
<li><strong>offsets</strong> &#8211; a list of offsets, each for one new data strings</li>
<li><strong>datacoding</strong> &#8211; DCB[&#8220;ONETIMEWRITE&#8221;] (replace) or DCB[&#8220;WRITEOR&#8221;]
(logical or) or DCB[&#8220;WRITEAND&#8221;] (logical and) or
DCB[&#8220;PROPRIETARY&#8221;] (logical xor)</li>
<li><strong>maxsize</strong> &#8211; the maximum number of bytes in the result</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>

</div>


    </div>
      
  </div>
</div>
<footer class="footer">
  <div class="container">
    <p class="pull-right">
      <a href="#">Back to top</a>
      
    </p>
    <p>
        &copy; Copyright 2009-2017 by Dominik Oepen and Frank Morgner.<br/>
    </p>
  </div>
</footer>
  </body>
</html>